package com.newtouch.bxzs.common.base.model;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 个人客户分组实体类
 *
 * <p>
 * <b>History:</b>
 * <table border="1">
 * <tr>
 * <th>Date</th>
 * <th>Operator</th>
 * <th>Memo</th>
 * </tr>
 * <tr>
 * <td>2020/12/24 17:47</td>
 * <td>yuanjie</td>
 * <td>Create</td>
 * </tr>
 * </table>
 *
 * @author yuanjie
 * @version 1.0.0
 * @since 1.0.0
 */
@ApiModel(value = "CustomerGroup", description = "个人客户分组实体类")
@Data
@TableName(value = "ASSISTANT_CUSTOMER_GROUP")
public class PersonalCustomerGroup {
    /** 主键GROUP_ID*/
    @TableId(value = "GROUP_ID", type = IdType.ASSIGN_UUID)
    private String groupId;

    /**分组名称*/
    @TableField("GROUP_NAME")
    private String groupName;

    /**创建人ID*/
    @TableField(value = "CREATE_USER_ID")
    private String createUserId;

    /**创建时间*/
    @TableField(value = "CREATE_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "CST")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**修改人ID*/
    @TableField(value = "UPDATE_USER_ID")
    private String updateUserId;

    /**修改时间*/
    @TableField(value = "UPDATE_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "CST")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**删除状态*/
    @TableField(value = "IS_DELETE")
    @TableLogic(value = "0", delval = "1")
    private Boolean deleteFlag = false;
}
